//
//  CutPriceDetailController.m
//  LoveCar
//
//  Created by dlios on 15/5/26.
//  Copyright (c) 2015年 薛森鸿. All rights reserved.
//

#import "CutPriceDetailController.h"
#import "CutPriceViewController.h"

@interface CutPriceDetailController ()

@end

@implementation CutPriceDetailController
- (void)awakeFromNib
{
    [super awakeFromNib];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"降价详情";
    [self.myWeb loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://mrobot.pcauto.com.cn/v3/price/promotionDetail/%@?modelId=21804", self.dealerNewsId]]]];
    UIBarButtonItem *back = [[UIBarButtonItem alloc] initWithTitle:@"  ╳" style:UIBarButtonItemStylePlain target:self action:@selector(backAction:)];
    back.tintColor = [UIColor lightGrayColor];
    self.navigationItem.leftBarButtonItem = back;
    [back release];
}
- (void)backAction:(id)sender
{
//    [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:1] animated:YES];
    [self.navigationController popViewControllerAnimated:YES];
}


- (void)dealloc {
    [_dealerNewsId release];
    [_myWeb release];
    [super dealloc];
}
@end
